<%= form_for [:admin, @template], :validate => true do |f| %>

<%= render "shared/error_messages", :target => @template %>

<table>
  <tbody>
    <tr>
      <th><%= f.label :presentation %></th>
      <td><%= f.text_field :presentation, :maxlength => 30, :size => 30 %></td>
    </tr>
    <tr>
      <th><%= f.label :name %></th>
      <td><%= f.text_field :name, :maxlength => 30, :size => 30 %></td>
    </tr>
    <tr>
      <th><%= f.label :group %></th>
      <td><%= f.select :group, options_for_select([["Vyberte kategorii", ""], [t("enumerations.template.group.system"), "system"], [t("enumerations.template.group.product_detail"), "product_detail"]], f.object.group.to_s) %></td>
    </tr>
    <tr>
      <th><%= f.label :variables %></th>
      <td><%= f.text_area :variables, :cols => "80", :rows => "8" %></td>
    </tr>
    <tr>
      <th><%= f.label :template %></th>
      <td><%= f.text_area :template, :cols => "80", :rows => "30" %></td>
    </tr>
    <tr>
      <td colspan="2"><%= f.submit %></td>
    </tr>
  </tbody>
</table>
<% end %>